<template>
  <div class />
</template>

<script>
export default {
  layout: "blank",
  // middleware: async (ctx) => {
  //   let {status,data}=await ctx.$axios.get('/users/exit')
  //   if(status===200&&data&&data.code===0){
  //     window.location.href='/'
  //   }
  // }
  created() {
    this.$axios.get("/users/exit").then(({ status, data }) => {
      if (status === 200 && data && data.code === 0) {
        window.location.href = "/";
      }
    });
  }
};
</script>
